import http from "@/server/http";



//量表类型导航
export const queryTypeNav = (params) => {
    return http({
        url: "/user/ratingScale/typeNav",
        method: "POST",
        data: params,
    })
}

//量表列表 
export const queryRatingScaleInfo = (params) => {
    return http({
        url: "/user/ratingScale/selfEvaluationRatingScaleList",
        method: "POST",
        data: params,
    })
}

//获取问题
export const queryRatingScaleQuestion = (params) => {
    return http({
        url: "/admin/RatingScale/getRatingScaleQuestion",
        method: "POST",
        data: params,
    })
}

//提交自我测评答案 
export const submitSelfAnswer  = (params) => {
    return http({
        url: "/user/ratingScale/submitSelfEvaluationResults",
        method: "POST",
        data: params,
    })
}

//专门获取测评总时间 
export const queryEvaluationTime  = (params) => {
    return http({
        url: "/admin/RatingScale/info",
        method: "POST",
        data: params,
    })
}

//任务测评
export const queryTaskEvaluation  = (params) => {
    return http({
        url: "/user/ratingScale/taskList",
        method: "POST",
        data: params,
    })
}

//任务测评列表
export const queryTaskList  = (params) => {
    return http({
        url: "/user/ratingScale/getTaskRatingScaleList2",
        method: "POST",
        data: params,
    })
}



//自我测评报告 
export const querySelfRecord  = (params) => {
    return http({
        url: "/mobile/rating_scale/report/self_list",
        method: "POST",
        data: params,
    })
}


//自我测评量表分类
export const queryScaleType  = (params) => {
    return http({
        url: "/user/ratingScale/typeNav",
        method: "POST",
        data: params,
    })
}

//自我测评结果 
export const querySelfEvaluationInfo  = (params) => {
    return http({
        url: "/user/Report/selfEvaluationInfo",
        method: "POST",
        data: params,
    })
}

//任务测评-分量表详情 
export const querySubscaleDet  = (params) => {
    return http({
        url: "/user/ratingScale/getTaskRatingScaleInfo",
        method: "POST",
        data: params,
    })
}

//提交任务测评答案 
export const submitTaskAnswer  = (params) => {
    return http({
        url: "/user/ratingScale/submitTaskEvaluationResults",
        method: "POST",
        data: params,
    })
}


//任务测评列表
export const queryTaskRecord  = (params) => {
    return http({
        url: "/mobile/rating_scale/report/task_list",
        method: "POST",
        data: params,
    })
}

// 任务测评详情
export const queryTaskDet  = (params) => {
    return http({
        url: "/mobile/rating_scale/report/task_info",
        method: "POST",
        data: params,
    })
}

// 任务测评-查看测评报告
export const queryTaskEvaluationReport  = (params) => {
    return http({
        url: "/user/Report/TaskEvaluationRightInfo",
        method: "POST",
        data: params,
    })
}

//删除单个自我测评
export const delSelfEvaluation  = (params) => {
    return http({
        url: "/user/Report/selfEvaluationDelete",
        method: "POST",
        data: params,
    })
}

//获取今日申请次数 
export const queryApplyNum  = (params) => {
    return http({
        url: "/mobile/rating_scale/report/get_explain_num",
        method: "POST",
        data: params,
    })
}

//申请解读 
export const selfApplyExplain  = (params) => {
    return http({
        url: "/user/Report/SelfResultExplain",
        method: "POST",
        data: params,
    })
}
